extends layout

block append pageStyles
  link(rel='stylesheet', href='/assets/css/login.css')
  
block body
  body(class="login")
    <!-- Logo -->
    div(class="logo")
      img(src="/assets/img/logo.png", alt="logo")
      strong 猎户座
    
    <!-- Login Box -->
    div(class="box")
      div(class="content")
        <!-- Login Formular -->
        form(class="form-vertical, login-form", action="/console/oauth2/token", method="post")
          <!-- Title -->
          h3(class="form-title") Sign In to your Account
          input(type="hidden", name="grant_type", value="password")
          <!-- Error Message -->
          div(class="alert fade in alert-danger", style="display: none;")
            i(class="icon-remove close", data-dismiss="alert")
            | Enter any username and password.

          <!-- Input Fields -->
          div(class="form-group")
            label(for="username") Username:
            div(class="input-icon")
              i(class="icon-user")
              input(type="text", name="username", class="form-control", placeholder="Username", autofocus="autofocus", data-rule-required="true", data-msg-required="Please enter your username.")
          div(class="form-group")
            label(for="password") Password:
            div(class="input-icon")
              i(class="icon-lock")
              input(type="password", name="password", class="form-control", placeholder="Password", data-rule-required="true", data-msg-required="Please enter your password.")
        
          div(class="form-actions")
            label(class="checkbox, pull-left")
              input(type="checkbox", class="uniform", name="remember")
              | Remember me
            button(type="submit", class="submit btn btn-primary pull-right") Sign In 
              i(class="icon-angle-right")
        
    script(type="text/javascript", src="/assets/js/login.js")
    script(type="text/javascript").
      $(document).ready(function(){
        "use strict";
        Login.init(); // Init login JavaScript
      });
  
